home *** CD-ROM | disk | FTP | other *** search
- *** ../step05/supfilesrv.c Thu Dec 16 15:24:56 1993
- --- supfilesrv.c Fri Dec 17 12:49:41 1993
- ***************
- *** 443,448 ****
- --- 443,449 ----
- {
- union wait w;
-
- + /* XXX all the signal stuff needs attention */
- while (wait3(&w, WNOHANG, (struct rusage *)0) > 0) {
- if (nchildren) nchildren--;
- }
- ***************
- *** 618,623 ****
- --- 619,627 ----
- {
- long starttime;
- register int x;
- + #ifdef _ABI_SOURCE
- + struct rlimit rl;
- + #endif
-
- progpid = fspid = getpid ();
- collname = NULL;
- ***************
- *** 649,655 ****
- --- 653,664 ----
- (void) dup2 (netfile,0);
- (void) dup2 (netfile,1);
- (void) dup2 (netfile,2);
- + #ifdef _ABI_SOURCE
- + getrlimit (RLIMIT_NOFILE, &rl);
- + fd = rl.rlim_max;
- + #else
- fd = getdtablesize ();
- + #endif
- while (--fd > 2)
- (void) close (fd);
- execvp (xargv[0],xargv);
-